package cn.tedu.yxcar.product.pojo.dto.order;


import cn.tedu.yxcar.product.valid.OrderRegExpression;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@ApiModel(value="订单新增DTO")
@Data
public class OrderAddDTO implements OrderRegExpression,Serializable {
    private static final String VALIDATE_MESSAGE_PREFIX = "新增订单失败，";
    private static final long serialVersionUID = 1L;


    /**
     * 订单ID
     */
    @ApiModelProperty(value="订单ID",example = "1")
    private Integer id;

    /**
     * 车辆ID
     */
    @ApiModelProperty(value="车辆ID",example = "2")
    private Integer carId;

    /**
     * 订单状态
     */
    @ApiModelProperty(value="订单状态",example = "未开始")
    private String status;

    /**
     * 订单类型
     */
    @ApiModelProperty(value="订单类型",example = "普通订单")
    private String type;

    /**
     * 订单主题
     */
    @ApiModelProperty(value="订单主题",example = "特斯拉")
    private String theme;

    /**
     * 订单项目
     */
    @ApiModelProperty(value="订单项目",example = "王小虎")
    private String name;

    /**
     * 负责人
     */
    @ApiModelProperty(value="负责人",example = "程序员")
    private String director;

    /**
     * 协作人
     */
    @ApiModelProperty(value="协作人",example = "AB车")
    private String tag;

    /**
     * 预计订单交付时间
     */
    @ApiModelProperty(value="预计订单交付时间",example = "2023-05-03")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date oDelivery;



}
